//
//  HMComponseBtn.swift
//  swift微博项目
//
//  Created by huodian on 16/10/6.
//  Copyright © 2016年 huodian. All rights reserved.
//

import UIKit

class HMComponseBtn: UIButton {

    override init(frame: CGRect) {
        super.init(frame: frame)
        
        self.titleLabel?.textAlignment = .center
        
        self.tintColor = UIColor.darkGray
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    override func titleRect(forContentRect contentRect: CGRect) -> CGRect {
        
        return CGRect(x: 0, y: btnW, width: btnW , height: btnH - btnW)
        
        
        
    }
    
    override func imageRect(forContentRect contentRect: CGRect) -> CGRect {
        
        return CGRect(x: 0, y: 0, width: btnW, height: btnW)
        
    }

}
